let xny =
  /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([A-HJ-K][A-HJ-NP-Z0-9][0-9]{4}$))/;
let ryc =
  /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;
export default {
  goOutContent: [
    { title: "姓名", dataIndex: "userName" },
    { title: "所在收费站", dataIndex: "deptName" },
    { title: "岗位", dataIndex: "postName" },
    { title: "添加时间", dataIndex: "addTime" },
    {
      title: "操作",
      key: "operation",
      dataIndex: "operation",
      width: 160,
      dispaly: true,
      slot: true,
      fixed: "right",
    },
  ],

  formItemConfig: [    
    {
      label: "收费站",
      prop: "deptId",
      component: "tree",
      placeholder: "请选择",
      span: 12,
      labelWidth: "100px",
    },
    {
      label: "岗位",
      prop: "postId",
      component: "select",
      placeholder: "请选择",
      span: 12,
      labelWidth: "100px",
      options:[],
      optionsText:{label:"postName",value:"postId"}
    },
    {
      label: "姓名",
      prop: "userId",
      component: "select",
      placeholder: "请选择",
      span: 12,
      labelWidth: "100px",
      optionsText:{label:"userName",value:"userId"}
    },
  ],

  rules: {
    deptId: [{ required: true, message: "收费站不能为空", trigger: "blur" }],
    userName: [{ required: true, message: "姓名不能为空", trigger: "blur" }],
    postName: [{ required: true, message: "岗位不能为空", trigger: "blur" }],
  },
};
